<?php
/**
 * User: hjd-yao
 * Date: 2019/6/14
 * Time: 11:18
 */

namespace App\Models\Shop;


use App\Models\BaseModel;

class ShopCartModel extends BaseModel
{
    protected $table = 'shop_cart';

    protected $primaryKey = 'id';

    public $dateFormat = 'U';

    public function user()
    {
        return $this->belongsTo('DC\UserCenter\Models\UserBaseModel','user_id','member_id');
    }

    public function goods()
    {
        return $this->belongsTo('App\Models\Shop\ShopGoodsModel','goods_id','goods_id');
    }
}